﻿using System;
using System.Collections.Generic;
using System.Text;

namespace ProTrack.Entity
{
    public class WhPoInbound
    {

        /// <summary>
        /// 入库记录ID
        /// </summary>
        public long Id { get; set; }

        /// <summary>
        /// 外部系统ID
        /// </summary>
        public string ExternalId { get; set; }


        /// <summary>
        /// 入库编号，唯一
        /// 格式：XR-年份-月份-日期-序号
        /// </summary>
        public string Number { get; set; }
        /// <summary>
        /// 付款日期
        /// </summary>
        public DateTime? PaymentTime { get; set; }

        /// <summary>
        /// 采购订单ID，关联已审核的采购订单
        /// </summary>
        public long? OrderPoId { get; set; }

        /// <summary>
        /// 供应商ID
        /// </summary>
        public string VendorId { get; set; }

        /// <summary>
        /// 供应商名称
        /// </summary>
        public string VendorName { get; set; }

        /// <summary>
        /// 供应商联系人
        /// </summary>
        public string VendorContact { get; set; }

        /// <summary>
        /// 供应商联系电话
        /// </summary>
        public string VendorContactTel { get; set; }

        /// <summary>
        /// 付款方式
        /// </summary>
        public string PaymentCategory { get; set; }

        /// <summary>
        /// 付款账户
        /// </summary>
        public string PaymentAccount { get; set; }

        /// <summary>
        /// 入货仓ID，不允许为空
        /// </summary>
        public long WarehouseId { get; set; }

        /// <summary>
        /// 入货仓名称，不允许为空
        /// </summary>
        public string WarehouseName { get; set; }


        /// <summary>
        /// 入库日期
        /// </summary>
        public DateTime ? DeliveryDate { get; set; }

        /// <summary>
        /// 状态：0待入库，1已入库
        /// </summary>
        public int Status { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }

        /// <summary>
        /// 创建者
        /// </summary>
        public string Creator { get; set; }

        /// <summary>
        /// 创建时间，默认当前时间
        /// </summary>
        public DateTime ? CreateTime { get; set; }

        /// <summary>
        /// 修改者
        /// </summary>
        public string Updater { get; set; }

        /// <summary>
        /// 修改时间，默认当前时间
        /// </summary>
        public DateTime ? UpdateTime { get; set; }

        /// <summary>
        /// 是否删除，默认为false
        /// </summary>
        public bool Deleted { get; set; }

    }
}
